package com.lh.controller;

import com.alibaba.fastjson.JSONObject;
import com.lh.service.StatisticsService;
import com.lh.utils.Answer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/statistics")
public class StatisticsController {

    @Autowired
    private StatisticsService statisticsService;

    @RequestMapping("/queryProjectCategory")
    public Answer<Object> queryProjectCategory() {
        return statisticsService.queryProjectCategory();
    }

    @RequestMapping("/queryAllData")
    public Answer<Object> queryAllData(@RequestBody JSONObject reqJson) {
        return statisticsService.queryAllData(reqJson);
    }
}
